x = [1, 2, 3]
sm = 0
ct = 4
while sm < 1200:
    y = (x[-1] + x[-2] + x[-3])/2
    x.append(y)
    sm = y
    ct += 1
print(f"从第{ct}项开始大于1200！")


